<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div>div1</div>
<div>div2</div>
<div>div3</div>

<input type="button" value="点我试试" onclick="alert('试试就试试')">

 <script type="text/javascript" src="../js/jquery-1.4.2.js"></script>
  <script type="text/javascript">
  /* 事件模拟:通过jq代码触发标签的事件 */
  setTimeout(function(){
	  $("input").trigger("click");
  },3000);
  /* 鼠标移入移出事件合并 */
  $("div").hover(function(){//鼠标移入时触发
	  $(this).css("color","red");
  },function(){//鼠标移出时触发
	  $(this).css("color","green");
  });
  </script>
</body>
</html>